package com.smartbus.bus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smartbus.common.annotation.Excel;
import com.smartbus.common.core.domain.BaseEntity;

/**
 * 报站类型配置，定义不同的报站场景（即将到站、已到达、换乘提示等）对象 announcement_types
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class AnnouncementTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 报站类型代码，如approaching、arrived等 */
    @Excel(name = "报站类型代码，如approaching、arrived等")
    private String typeCode;

    /** 报站类型名称，如即将到站、已到达等 */
    @Excel(name = "报站类型名称，如即将到站、已到达等")
    private String typeName;

    /** 报站类型详细描述 */
    @Excel(name = "报站类型详细描述")
    private String description;

    /** 是否启用，1-启用 0-停用 */
    @Excel(name = "是否启用，1-启用 0-停用")
    private Integer isActive;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("description", getDescription())
            .append("isActive", getIsActive())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
